import http from '../utils/http.js'
/**
 * 个人信息
 */
export const meApi = () => {
  return http.post(`/user/userInfo/me`)
}
/**
 * 修改用户
 */
export const updateInfoApi = (data) => {
  return http.post(`/user/userInfo/updateInfo`, data)
}
/**
 * 添加用户
 */
export const addUserApi = (data) => {
  return http.post(`/user/userInfo/addUser`, data)
}
/**
 * 删除用户
 */
export const deleteApi = (username) => {
  return http.get(`/user/userInfo/delete/${username}`)
}
/**
 * 查询用户列表
 */
export const listApi = (data, pageNum, size) => {
  return http.post(`/user/userInfo/list/${pageNum}/${size}`, data)
}
